.class public Les/vo0;
.super Ljava/lang/Object;
.source "Archive.java"

# interfaces
.implements Ljava/io/Closeable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/vo0$b;
    }
.end annotation


# static fields
.field private static q:Ljava/util/logging/Logger;


# instance fields
.field private a:Ljava/io/File;

.field private b:Les/zo0;

.field private c:Les/wo0;

.field private final d:Les/dp0;

.field private final e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lde/innosystec/unrar/rarfile/b;",
            ">;"
        }
    .end annotation
.end field

.field private f:Lde/innosystec/unrar/rarfile/l;

.field private g:Lde/innosystec/unrar/rarfile/k;

.field private h:Les/gp0;

.field private i:I

.field private j:J

.field private k:J

.field private l:Ljava/lang/String;

.field private m:Z

.field private n:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lde/innosystec/unrar/rarfile/g;",
            ">;"
        }
    .end annotation
.end field

.field private o:Les/k80;

.field private p:Les/vo0$b;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    const-class v0, Les/vo0;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;

    move-result-object v0

    sput-object v0, Les/vo0;->q:Ljava/util/logging/Logger;

    return-void
.end method

.method public constructor <init>(Ljava/io/File;Ljava/lang/String;Les/vo0$b;Les/wo0;Z)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lde/innosystec/unrar/exception/RarException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Les/vo0;->e:Ljava/util/List;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    .line 4
    iput-object v0, p0, Les/vo0;->g:Lde/innosystec/unrar/rarfile/k;

    const-wide/16 v0, 0x0

    .line 5
    iput-wide v0, p0, Les/vo0;->j:J

    .line 6
    iput-wide v0, p0, Les/vo0;->k:J

    const-string v0, "GBK"

    .line 7
    iput-object v0, p0, Les/vo0;->l:Ljava/lang/String;

    const/4 v0, 0x0

    .line 8
    iput-boolean v0, p0, Les/vo0;->m:Z

    .line 9
    new-instance v0, Ljava/util/LinkedHashMap;

    invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V

    iput-object v0, p0, Les/vo0;->n:Ljava/util/Map;

    .line 10
    iput-object p2, p0, Les/vo0;->l:Ljava/lang/String;

    .line 11
    iput-object p3, p0, Les/vo0;->p:Les/vo0$b;

    .line 12
    iput-boolean p5, p0, Les/vo0;->m:Z

    .line 13
    invoke-virtual {p0, p1}, Les/vo0;->a(Ljava/io/File;)V

    .line 14
    iput-object p4, p0, Les/vo0;->c:Les/wo0;

    .line 15
    new-instance p1, Les/dp0;

    invoke-direct {p1, p0}, Les/dp0;-><init>(Les/vo0;)V

    iput-object p1, p0, Les/vo0;->d:Les/dp0;

    return-void
.end method

.method private C()V
    .locals 14
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lde/innosystec/unrar/exception/RarException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/vo0;->a:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v0

    const/4 v2, 0x0

    new-array v3, v2, [B

    .line 2
    iget-object v4, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v4}, Les/zo0;->getPosition()J

    move-result-wide v4

    .line 3
    :cond_0
    :goto_0
    iget-object v6, p0, Les/vo0;->p:Les/vo0$b;

    if-eqz v6, :cond_1

    invoke-interface {v6}, Les/vo0$b;->a()Z

    move-result v6

    if-eqz v6, :cond_1

    goto :goto_1

    :cond_1
    const/4 v6, 0x7

    new-array v7, v6, [B

    .line 4
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8}, Les/zo0;->getPosition()J

    move-result-wide v8

    cmp-long v10, v8, v0

    if-ltz v10, :cond_2

    .line 5
    :goto_1
    iget-object v0, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v0, v4, v5}, Les/zo0;->b(J)V

    return-void

    .line 6
    :cond_2
    iget-object v10, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v10, v7, v6}, Les/zo0;->a([BI)I

    .line 7
    new-instance v10, Lde/innosystec/unrar/rarfile/b;

    invoke-direct {v10, v7}, Lde/innosystec/unrar/rarfile/b;-><init>([B)V

    .line 8
    invoke-virtual {v10, v8, v9}, Lde/innosystec/unrar/rarfile/b;->a(J)V

    .line 9
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v7

    if-eqz v7, :cond_13

    .line 10
    sget-object v8, Les/vo0$a;->b:[I

    invoke-virtual {v7}, Ljava/lang/Enum;->ordinal()I

    move-result v7

    aget v7, v8, v7

    const/4 v8, 0x6

    const/16 v9, 0x8

    const/4 v11, 0x4

    packed-switch v7, :pswitch_data_0

    new-array v7, v11, [B

    .line 11
    iget-object v12, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v12, v7, v11}, Les/zo0;->a([BI)I

    .line 12
    new-instance v12, Lde/innosystec/unrar/rarfile/c;

    invoke-direct {v12, v10, v7}, Lde/innosystec/unrar/rarfile/c;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 13
    sget-object v7, Les/vo0$a;->b:[I

    invoke-virtual {v12}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Enum;->ordinal()I

    move-result v10

    aget v7, v7, v10

    goto/16 :goto_5

    .line 14
    :pswitch_0
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->f()Z

    move-result v0

    if-eqz v0, :cond_3

    goto :goto_2

    :cond_3
    const/4 v11, 0x0

    .line 15
    :goto_2
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->h()Z

    move-result v0

    if-eqz v0, :cond_4

    add-int/lit8 v11, v11, 0x2

    :cond_4
    if-lez v11, :cond_5

    .line 16
    new-array v0, v11, [B

    .line 17
    iget-object v1, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v1, v0, v11}, Les/zo0;->a([BI)I

    .line 18
    new-instance v1, Lde/innosystec/unrar/rarfile/f;

    invoke-direct {v1, v10, v0}, Lde/innosystec/unrar/rarfile/f;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    goto :goto_3

    .line 19
    :cond_5
    new-instance v0, Lde/innosystec/unrar/rarfile/f;

    const/4 v1, 0x0

    invoke-direct {v0, v10, v1}, Lde/innosystec/unrar/rarfile/f;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 20
    :goto_3
    iget-boolean v0, p0, Les/vo0;->m:Z

    if-eqz v0, :cond_7

    .line 21
    array-length v0, v3

    invoke-static {v3, v0}, Lcom/estrongs/android/util/f;->a([BI)Ljava/lang/String;

    move-result-object v0

    .line 22
    invoke-static {v0}, Ljava/nio/charset/Charset;->isSupported(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    .line 23
    iput-object v0, p0, Les/vo0;->l:Ljava/lang/String;

    .line 24
    :cond_6
    iput-boolean v2, p0, Les/vo0;->m:Z

    .line 25
    :cond_7
    iget-object v0, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v0, v4, v5}, Les/zo0;->b(J)V

    return-void

    :pswitch_1
    new-array v6, v8, [B

    .line 26
    iget-object v7, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v7, v6, v8}, Les/zo0;->a([BI)I

    .line 27
    new-instance v7, Lde/innosystec/unrar/rarfile/d;

    invoke-direct {v7, v10, v6}, Lde/innosystec/unrar/rarfile/d;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 28
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v8

    .line 29
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v6

    int-to-long v6, v6

    add-long/2addr v8, v6

    .line 30
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v8, v9}, Les/zo0;->b(J)V

    goto/16 :goto_0

    :pswitch_2
    new-array v7, v6, [B

    .line 31
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v7, v6}, Les/zo0;->a([BI)I

    .line 32
    new-instance v6, Lde/innosystec/unrar/rarfile/a;

    invoke-direct {v6, v10, v7}, Lde/innosystec/unrar/rarfile/a;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    goto/16 :goto_0

    :pswitch_3
    new-array v6, v9, [B

    .line 33
    iget-object v7, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v7, v6, v9}, Les/zo0;->a([BI)I

    .line 34
    new-instance v7, Lde/innosystec/unrar/rarfile/o;

    invoke-direct {v7, v10, v6}, Lde/innosystec/unrar/rarfile/o;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    goto/16 :goto_0

    .line 35
    :pswitch_4
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->g()Z

    move-result v7

    if-eqz v7, :cond_8

    goto :goto_4

    :cond_8
    const/4 v6, 0x6

    .line 36
    :goto_4
    new-array v7, v6, [B

    .line 37
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v7, v6}, Les/zo0;->a([BI)I

    .line 38
    new-instance v6, Lde/innosystec/unrar/rarfile/k;

    invoke-direct {v6, v10, v7}, Lde/innosystec/unrar/rarfile/k;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 39
    invoke-virtual {v6}, Lde/innosystec/unrar/rarfile/k;->j()Z

    move-result v6

    if-nez v6, :cond_9

    goto/16 :goto_0

    .line 40
    :cond_9
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->rarEncryptedException:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    .line 41
    :pswitch_5
    new-instance v6, Lde/innosystec/unrar/rarfile/l;

    invoke-direct {v6, v10}, Lde/innosystec/unrar/rarfile/l;-><init>(Lde/innosystec/unrar/rarfile/b;)V

    iput-object v6, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    .line 42
    invoke-virtual {v6}, Lde/innosystec/unrar/rarfile/l;->k()Z

    move-result v6

    if-eqz v6, :cond_a

    goto/16 :goto_0

    .line 43
    :cond_a
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->badRarArchive:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    :goto_5
    const/4 v10, 0x1

    if-eq v7, v10, :cond_10

    const/4 v13, 0x2

    if-eq v7, v13, :cond_10

    const/4 v13, 0x3

    if-eq v7, v13, :cond_f

    if-ne v7, v11, :cond_e

    new-array v6, v13, [B

    .line 44
    iget-object v7, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v7, v6, v13}, Les/zo0;->a([BI)I

    .line 45
    new-instance v7, Lde/innosystec/unrar/rarfile/p;

    invoke-direct {v7, v12, v6}, Lde/innosystec/unrar/rarfile/p;-><init>(Lde/innosystec/unrar/rarfile/c;[B)V

    .line 46
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/p;->i()V

    .line 47
    sget-object v6, Les/vo0$a;->a:[I

    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/p;->m()Lde/innosystec/unrar/rarfile/SubBlockHeaderType;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/Enum;->ordinal()I

    move-result v11

    aget v6, v6, v11

    if-eq v6, v10, :cond_d

    if-eq v6, v13, :cond_c

    if-eq v6, v8, :cond_b

    goto/16 :goto_0

    .line 48
    :cond_b
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v6

    add-int/lit8 v6, v6, -0x7

    add-int/lit8 v6, v6, -0x4

    add-int/lit8 v6, v6, -0x3

    .line 49
    new-array v8, v6, [B

    .line 50
    iget-object v9, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v9, v8, v6}, Les/zo0;->a([BI)I

    .line 51
    new-instance v6, Lde/innosystec/unrar/rarfile/q;

    invoke-direct {v6, v7, v8}, Lde/innosystec/unrar/rarfile/q;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 52
    invoke-virtual {v6}, Lde/innosystec/unrar/rarfile/q;->i()V

    goto/16 :goto_0

    :cond_c
    const/16 v6, 0xa

    new-array v8, v6, [B

    .line 53
    iget-object v9, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v9, v8, v6}, Les/zo0;->a([BI)I

    .line 54
    new-instance v6, Lde/innosystec/unrar/rarfile/e;

    invoke-direct {v6, v7, v8}, Lde/innosystec/unrar/rarfile/e;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 55
    invoke-virtual {v6}, Lde/innosystec/unrar/rarfile/e;->i()V

    goto/16 :goto_0

    :cond_d
    new-array v6, v9, [B

    .line 56
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v6, v9}, Les/zo0;->a([BI)I

    .line 57
    new-instance v8, Lde/innosystec/unrar/rarfile/j;

    invoke-direct {v8, v7, v6}, Lde/innosystec/unrar/rarfile/j;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 58
    invoke-virtual {v8}, Lde/innosystec/unrar/rarfile/j;->i()V

    goto/16 :goto_0

    .line 59
    :cond_e
    sget-object v0, Les/vo0;->q:Ljava/util/logging/Logger;

    const-string v1, "Unknown Header"

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->warning(Ljava/lang/String;)V

    .line 60
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->notRarArchive:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    .line 61
    :cond_f
    invoke-virtual {v12}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v7

    sub-int/2addr v7, v6

    sub-int/2addr v7, v11

    .line 62
    new-array v6, v7, [B

    .line 63
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v6, v7}, Les/zo0;->a([BI)I

    .line 64
    new-instance v7, Lde/innosystec/unrar/rarfile/n;

    invoke-direct {v7, v12, v6}, Lde/innosystec/unrar/rarfile/n;-><init>(Lde/innosystec/unrar/rarfile/c;[B)V

    .line 65
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v8

    .line 66
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v6

    int-to-long v6, v6

    add-long/2addr v8, v6

    .line 67
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v8, v9}, Les/zo0;->b(J)V

    goto/16 :goto_0

    .line 68
    :cond_10
    invoke-virtual {v12}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v7

    sub-int/2addr v7, v6

    sub-int/2addr v7, v11

    .line 69
    new-array v6, v7, [B

    .line 70
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v6, v7}, Les/zo0;->a([BI)I

    .line 71
    new-instance v7, Lde/innosystec/unrar/rarfile/i;

    invoke-direct {v7, v12, v6, p0}, Lde/innosystec/unrar/rarfile/i;-><init>(Lde/innosystec/unrar/rarfile/c;[BLes/vo0;)V

    .line 72
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/i;->n()Z

    move-result v6

    if-eqz v6, :cond_11

    .line 73
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/i;->l()[B

    move-result-object v6

    invoke-static {v3, v6}, Lcom/estrongs/android/util/f;->a([B[B)[B

    move-result-object v3

    .line 74
    :cond_11
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v8

    .line 75
    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v6

    int-to-long v10, v6

    add-long/2addr v8, v10

    invoke-virtual {v7}, Lde/innosystec/unrar/rarfile/i;->m()J

    move-result-wide v6

    add-long/2addr v8, v6

    .line 76
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v8, v9}, Les/zo0;->b(J)V

    .line 77
    array-length v6, v3

    const/16 v7, 0x400

    if-lt v6, v7, :cond_0

    iget-boolean v6, p0, Les/vo0;->m:Z

    if-eqz v6, :cond_0

    .line 78
    array-length v0, v3

    invoke-static {v3, v0}, Lcom/estrongs/android/util/f;->a([BI)Ljava/lang/String;

    move-result-object v0

    .line 79
    invoke-static {v0}, Ljava/nio/charset/Charset;->isSupported(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_12

    .line 80
    iput-object v0, p0, Les/vo0;->l:Ljava/lang/String;

    .line 81
    :cond_12
    iput-boolean v2, p0, Les/vo0;->m:Z

    .line 82
    iget-object v0, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v0, v4, v5}, Les/zo0;->b(J)V

    return-void

    .line 83
    :cond_13
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->wrongHeaderType:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    goto :goto_7

    :goto_6
    throw v0

    :goto_7
    goto :goto_6

    :pswitch_data_0
    .packed-switch 0x5
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private D()V
    .locals 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lde/innosystec/unrar/exception/RarException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    iput-object v0, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    .line 2
    iput-object v0, p0, Les/vo0;->g:Lde/innosystec/unrar/rarfile/k;

    .line 3
    iget-object v1, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 4
    iget-object v1, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->clear()V

    const/4 v1, 0x0

    .line 5
    iput v1, p0, Les/vo0;->i:I

    .line 6
    iget-object v2, p0, Les/vo0;->a:Ljava/io/File;

    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v2

    .line 7
    :goto_0
    iget-object v4, p0, Les/vo0;->p:Les/vo0$b;

    if-eqz v4, :cond_0

    invoke-interface {v4}, Les/vo0$b;->a()Z

    move-result v4

    if-eqz v4, :cond_0

    .line 8
    iget-object v0, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 9
    iget-object v0, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    goto :goto_1

    :cond_0
    const/4 v4, 0x7

    new-array v5, v4, [B

    .line 10
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6}, Les/zo0;->getPosition()J

    move-result-wide v6

    cmp-long v8, v6, v2

    if-ltz v8, :cond_1

    :goto_1
    return-void

    .line 11
    :cond_1
    iget-object v8, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v8, v5, v4}, Les/zo0;->a([BI)I

    .line 12
    new-instance v8, Lde/innosystec/unrar/rarfile/b;

    invoke-direct {v8, v5}, Lde/innosystec/unrar/rarfile/b;-><init>([B)V

    .line 13
    invoke-virtual {v8, v6, v7}, Lde/innosystec/unrar/rarfile/b;->a(J)V

    .line 14
    invoke-virtual {v8}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v5

    if-eqz v5, :cond_f

    .line 15
    sget-object v6, Les/vo0$a;->b:[I

    invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I

    move-result v5

    aget v5, v6, v5

    const/4 v6, 0x6

    const/16 v7, 0x8

    const/4 v9, 0x4

    packed-switch v5, :pswitch_data_0

    new-array v5, v9, [B

    .line 16
    iget-object v10, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v10, v5, v9}, Les/zo0;->a([BI)I

    .line 17
    new-instance v10, Lde/innosystec/unrar/rarfile/c;

    invoke-direct {v10, v8, v5}, Lde/innosystec/unrar/rarfile/c;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 18
    sget-object v5, Les/vo0$a;->b:[I

    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Enum;->ordinal()I

    move-result v8

    aget v5, v5, v8

    goto/16 :goto_4

    .line 19
    :pswitch_0
    invoke-virtual {v8}, Lde/innosystec/unrar/rarfile/b;->f()Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v1, 0x4

    .line 20
    :cond_2
    invoke-virtual {v8}, Lde/innosystec/unrar/rarfile/b;->h()Z

    move-result v2

    if-eqz v2, :cond_3

    add-int/lit8 v1, v1, 0x2

    :cond_3
    if-lez v1, :cond_4

    .line 21
    new-array v0, v1, [B

    .line 22
    iget-object v2, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v2, v0, v1}, Les/zo0;->a([BI)I

    .line 23
    new-instance v1, Lde/innosystec/unrar/rarfile/f;

    invoke-direct {v1, v8, v0}, Lde/innosystec/unrar/rarfile/f;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    goto :goto_2

    .line 24
    :cond_4
    new-instance v1, Lde/innosystec/unrar/rarfile/f;

    invoke-direct {v1, v8, v0}, Lde/innosystec/unrar/rarfile/f;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 25
    :goto_2
    iget-object v0, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void

    :pswitch_1
    new-array v4, v6, [B

    .line 26
    iget-object v5, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v5, v4, v6}, Les/zo0;->a([BI)I

    .line 27
    new-instance v5, Lde/innosystec/unrar/rarfile/d;

    invoke-direct {v5, v8, v4}, Lde/innosystec/unrar/rarfile/d;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 28
    iget-object v4, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 29
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v6

    .line 30
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v4

    int-to-long v4, v4

    add-long/2addr v6, v4

    .line 31
    iget-object v4, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v4, v6, v7}, Les/zo0;->b(J)V

    goto/16 :goto_0

    :pswitch_2
    new-array v5, v4, [B

    .line 32
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v5, v4}, Les/zo0;->a([BI)I

    .line 33
    new-instance v4, Lde/innosystec/unrar/rarfile/a;

    invoke-direct {v4, v8, v5}, Lde/innosystec/unrar/rarfile/a;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 34
    iget-object v5, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :pswitch_3
    new-array v4, v7, [B

    .line 35
    iget-object v5, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v5, v4, v7}, Les/zo0;->a([BI)I

    .line 36
    new-instance v5, Lde/innosystec/unrar/rarfile/o;

    invoke-direct {v5, v8, v4}, Lde/innosystec/unrar/rarfile/o;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 37
    iget-object v4, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 38
    :pswitch_4
    invoke-virtual {v8}, Lde/innosystec/unrar/rarfile/b;->g()Z

    move-result v5

    if-eqz v5, :cond_5

    goto :goto_3

    :cond_5
    const/4 v4, 0x6

    .line 39
    :goto_3
    new-array v5, v4, [B

    .line 40
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v5, v4}, Les/zo0;->a([BI)I

    .line 41
    new-instance v4, Lde/innosystec/unrar/rarfile/k;

    invoke-direct {v4, v8, v5}, Lde/innosystec/unrar/rarfile/k;-><init>(Lde/innosystec/unrar/rarfile/b;[B)V

    .line 42
    iget-object v5, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 43
    iput-object v4, p0, Les/vo0;->g:Lde/innosystec/unrar/rarfile/k;

    .line 44
    invoke-virtual {v4}, Lde/innosystec/unrar/rarfile/k;->j()Z

    move-result v4

    if-nez v4, :cond_6

    goto/16 :goto_0

    .line 45
    :cond_6
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->rarEncryptedException:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    .line 46
    :pswitch_5
    new-instance v4, Lde/innosystec/unrar/rarfile/l;

    invoke-direct {v4, v8}, Lde/innosystec/unrar/rarfile/l;-><init>(Lde/innosystec/unrar/rarfile/b;)V

    iput-object v4, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    .line 47
    invoke-virtual {v4}, Lde/innosystec/unrar/rarfile/l;->k()Z

    move-result v4

    if-eqz v4, :cond_7

    .line 48
    iget-object v4, p0, Les/vo0;->e:Ljava/util/List;

    iget-object v5, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 49
    :cond_7
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->badRarArchive:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    :goto_4
    const/4 v8, 0x1

    if-eq v5, v8, :cond_d

    const/4 v11, 0x2

    if-eq v5, v11, :cond_d

    const/4 v11, 0x3

    if-eq v5, v11, :cond_c

    if-ne v5, v9, :cond_b

    new-array v4, v11, [B

    .line 50
    iget-object v5, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v5, v4, v11}, Les/zo0;->a([BI)I

    .line 51
    new-instance v5, Lde/innosystec/unrar/rarfile/p;

    invoke-direct {v5, v10, v4}, Lde/innosystec/unrar/rarfile/p;-><init>(Lde/innosystec/unrar/rarfile/c;[B)V

    .line 52
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/p;->i()V

    .line 53
    sget-object v4, Les/vo0$a;->a:[I

    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/p;->m()Lde/innosystec/unrar/rarfile/SubBlockHeaderType;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Enum;->ordinal()I

    move-result v9

    aget v4, v4, v9

    if-eq v4, v8, :cond_a

    if-eq v4, v11, :cond_9

    if-eq v4, v6, :cond_8

    goto/16 :goto_0

    .line 54
    :cond_8
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v4

    add-int/lit8 v4, v4, -0x7

    add-int/lit8 v4, v4, -0x4

    add-int/lit8 v4, v4, -0x3

    .line 55
    new-array v6, v4, [B

    .line 56
    iget-object v7, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v7, v6, v4}, Les/zo0;->a([BI)I

    .line 57
    new-instance v4, Lde/innosystec/unrar/rarfile/q;

    invoke-direct {v4, v5, v6}, Lde/innosystec/unrar/rarfile/q;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 58
    invoke-virtual {v4}, Lde/innosystec/unrar/rarfile/q;->i()V

    .line 59
    iget-object v5, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_9
    const/16 v4, 0xa

    new-array v6, v4, [B

    .line 60
    iget-object v7, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v7, v6, v4}, Les/zo0;->a([BI)I

    .line 61
    new-instance v4, Lde/innosystec/unrar/rarfile/e;

    invoke-direct {v4, v5, v6}, Lde/innosystec/unrar/rarfile/e;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 62
    invoke-virtual {v4}, Lde/innosystec/unrar/rarfile/e;->i()V

    .line 63
    iget-object v5, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    :cond_a
    new-array v4, v7, [B

    .line 64
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v4, v7}, Les/zo0;->a([BI)I

    .line 65
    new-instance v6, Lde/innosystec/unrar/rarfile/j;

    invoke-direct {v6, v5, v4}, Lde/innosystec/unrar/rarfile/j;-><init>(Lde/innosystec/unrar/rarfile/p;[B)V

    .line 66
    invoke-virtual {v6}, Lde/innosystec/unrar/rarfile/j;->i()V

    .line 67
    iget-object v4, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v4, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0

    .line 68
    :cond_b
    sget-object v0, Les/vo0;->q:Ljava/util/logging/Logger;

    const-string v1, "Unknown Header"

    invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->warning(Ljava/lang/String;)V

    .line 69
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->notRarArchive:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw v0

    .line 70
    :cond_c
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v5

    sub-int/2addr v5, v4

    sub-int/2addr v5, v9

    .line 71
    new-array v4, v5, [B

    .line 72
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v4, v5}, Les/zo0;->a([BI)I

    .line 73
    new-instance v5, Lde/innosystec/unrar/rarfile/n;

    invoke-direct {v5, v10, v4}, Lde/innosystec/unrar/rarfile/n;-><init>(Lde/innosystec/unrar/rarfile/c;[B)V

    .line 74
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v6

    .line 75
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v4

    int-to-long v4, v4

    add-long/2addr v6, v4

    .line 76
    iget-object v4, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v4, v6, v7}, Les/zo0;->b(J)V

    goto/16 :goto_0

    .line 77
    :cond_d
    invoke-virtual {v10}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v5

    sub-int/2addr v5, v4

    sub-int/2addr v5, v9

    .line 78
    new-array v4, v5, [B

    .line 79
    iget-object v6, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v6, v4, v5}, Les/zo0;->a([BI)I

    .line 80
    iget-boolean v5, p0, Les/vo0;->m:Z

    if-eqz v5, :cond_e

    iget-object v5, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-interface {v5}, Ljava/util/Map;->size()I

    move-result v5

    if-lez v5, :cond_e

    .line 81
    iput-boolean v1, p0, Les/vo0;->m:Z

    .line 82
    :cond_e
    new-instance v5, Lde/innosystec/unrar/rarfile/g;

    invoke-direct {v5, v10, v4, p0}, Lde/innosystec/unrar/rarfile/g;-><init>(Lde/innosystec/unrar/rarfile/c;[BLes/vo0;)V

    .line 83
    iget-object v4, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/g;->m()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v6, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 84
    iget-object v4, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 85
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v6

    .line 86
    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v4

    int-to-long v8, v4

    add-long/2addr v6, v8

    invoke-virtual {v5}, Lde/innosystec/unrar/rarfile/g;->o()J

    move-result-wide v4

    add-long/2addr v6, v4

    .line 87
    iget-object v4, p0, Les/vo0;->b:Les/zo0;

    invoke-interface {v4, v6, v7}, Les/zo0;->b(J)V

    goto/16 :goto_0

    .line 88
    :cond_f
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v1, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->wrongHeaderType:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {v0, v1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    goto :goto_6

    :goto_5
    throw v0

    :goto_6
    goto :goto_5

    nop

    :pswitch_data_0
    .packed-switch 0x5
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method private b(Lde/innosystec/unrar/rarfile/g;Ljava/io/OutputStream;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lde/innosystec/unrar/exception/RarException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/vo0;->d:Les/dp0;

    invoke-virtual {v0, p2}, Les/dp0;->a(Ljava/io/OutputStream;)V

    .line 2
    iget-object p2, p0, Les/vo0;->d:Les/dp0;

    invoke-virtual {p2, p1}, Les/dp0;->a(Lde/innosystec/unrar/rarfile/g;)V

    .line 3
    iget-object p2, p0, Les/vo0;->d:Les/dp0;

    invoke-virtual {p0}, Les/vo0;->s()Z

    move-result v0

    const-wide/16 v1, -0x1

    if-eqz v0, :cond_0

    const-wide/16 v3, 0x0

    goto :goto_0

    :cond_0
    move-wide v3, v1

    :goto_0
    invoke-virtual {p2, v3, v4}, Les/dp0;->a(J)V

    .line 4
    iget-object p2, p0, Les/vo0;->h:Les/gp0;

    if-nez p2, :cond_1

    .line 5
    new-instance p2, Les/gp0;

    iget-object v0, p0, Les/vo0;->d:Les/dp0;

    invoke-direct {p2, v0}, Les/gp0;-><init>(Les/dp0;)V

    iput-object p2, p0, Les/vo0;->h:Les/gp0;

    .line 6
    :cond_1
    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->x()Z

    move-result p2

    if-nez p2, :cond_2

    .line 7
    iget-object p2, p0, Les/vo0;->h:Les/gp0;

    const/4 v0, 0x0

    invoke-virtual {p2, v0}, Les/gp0;->a([B)V

    .line 8
    :cond_2
    iget-object p2, p0, Les/vo0;->h:Les/gp0;

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->p()J

    move-result-wide v3

    invoke-virtual {p2, v3, v4}, Les/gp0;->a(J)V

    .line 9
    :try_start_0
    iget-object p2, p0, Les/vo0;->h:Les/gp0;

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->r()B

    move-result v0

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->x()Z

    move-result p1

    invoke-virtual {p2, v0, p1}, Les/gp0;->a(IZ)V

    .line 10
    iget-object p1, p0, Les/vo0;->o:Les/k80;

    if-eqz p1, :cond_3

    iget-object p1, p0, Les/vo0;->o:Les/k80;

    invoke-interface {p1}, Les/j80;->a()Z

    move-result p1

    if-eqz p1, :cond_3

    return-void

    .line 11
    :cond_3
    iget-object p1, p0, Les/vo0;->d:Les/dp0;

    invoke-virtual {p1}, Les/dp0;->b()Lde/innosystec/unrar/rarfile/g;

    move-result-object p1

    .line 12
    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->y()Z

    move-result p2

    if-eqz p2, :cond_4

    iget-object p2, p0, Les/vo0;->d:Les/dp0;

    .line 13
    invoke-virtual {p2}, Les/dp0;->a()J

    move-result-wide v3

    :goto_1
    xor-long/2addr v1, v3

    goto :goto_2

    :cond_4
    iget-object p2, p0, Les/vo0;->d:Les/dp0;

    invoke-virtual {p2}, Les/dp0;->c()J

    move-result-wide v3

    goto :goto_1

    .line 14
    :goto_2
    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->l()I

    move-result p2

    int-to-long v3, p2

    cmp-long v0, v1, v3

    if-nez v0, :cond_5

    return-void

    .line 15
    :cond_5
    new-instance v0, Lde/innosystec/unrar/exception/RarException;

    sget-object v3, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->crcError:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->m()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " expectedCRC = "

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, ",actualCRC = "

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, v3, p1}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p1

    .line 16
    iget-object p2, p0, Les/vo0;->h:Les/gp0;

    invoke-virtual {p2}, Les/gp0;->n()V

    .line 17
    instance-of p2, p1, Lde/innosystec/unrar/exception/RarException;

    if-eqz p2, :cond_6

    .line 18
    check-cast p1, Lde/innosystec/unrar/exception/RarException;

    throw p1

    .line 19
    :cond_6
    new-instance p2, Lde/innosystec/unrar/exception/RarException;

    invoke-direct {p2, p1}, Lde/innosystec/unrar/exception/RarException;-><init>(Ljava/lang/Exception;)V

    goto :goto_4

    :goto_3
    throw p2

    :goto_4
    goto :goto_3
.end method


# virtual methods
.method public A()V
    .locals 2

    const-wide/16 v0, 0x0

    .line 1
    iput-wide v0, p0, Les/vo0;->k:J

    return-void
.end method

.method public B()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput v0, p0, Les/vo0;->i:I

    return-void
.end method

.method public a(I)V
    .locals 4

    if-lez p1, :cond_0

    .line 16
    iget-wide v0, p0, Les/vo0;->k:J

    int-to-long v2, p1

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/vo0;->k:J

    .line 17
    iget-object p1, p0, Les/vo0;->c:Les/wo0;

    if-eqz p1, :cond_0

    .line 18
    iget-wide v2, p0, Les/vo0;->j:J

    invoke-interface {p1, v0, v1, v2, v3}, Les/wo0;->a(JJ)V

    :cond_0
    return-void
.end method

.method public a(Lde/innosystec/unrar/rarfile/g;Ljava/io/OutputStream;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lde/innosystec/unrar/exception/RarException;
        }
    .end annotation

    .line 20
    iget-object v0, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 21
    iget-object v0, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->m()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 22
    :cond_0
    new-instance p1, Lde/innosystec/unrar/exception/RarException;

    sget-object p2, Lde/innosystec/unrar/exception/RarException$RarExceptionType;->headerNotInArchive:Lde/innosystec/unrar/exception/RarException$RarExceptionType;

    invoke-direct {p1, p2}, Lde/innosystec/unrar/exception/RarException;-><init>(Lde/innosystec/unrar/exception/RarException$RarExceptionType;)V

    throw p1

    .line 23
    :cond_1
    :goto_0
    :try_start_0
    iget-object v0, p0, Les/vo0;->n:Ljava/util/Map;

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->m()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lde/innosystec/unrar/rarfile/g;

    invoke-direct {p0, v0, p2}, Les/vo0;->b(Lde/innosystec/unrar/rarfile/g;Ljava/io/OutputStream;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p2

    .line 24
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Failed to extract "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->m()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " - "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 25
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    .line 26
    instance-of p1, p2, Lde/innosystec/unrar/exception/RarException;

    if-eqz p1, :cond_2

    .line 27
    check-cast p2, Lde/innosystec/unrar/exception/RarException;

    throw p2

    .line 28
    :cond_2
    new-instance p1, Lde/innosystec/unrar/exception/RarException;

    invoke-direct {p1, p2}, Lde/innosystec/unrar/exception/RarException;-><init>(Ljava/lang/Exception;)V

    throw p1
.end method

.method public a(Les/k80;)V
    .locals 0

    .line 30
    iput-object p1, p0, Les/vo0;->o:Les/k80;

    return-void
.end method

.method public a(Les/wo0;)V
    .locals 0

    .line 19
    iput-object p1, p0, Les/vo0;->c:Les/wo0;

    return-void
.end method

.method a(Ljava/io/File;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lde/innosystec/unrar/exception/RarException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iput-object p1, p0, Les/vo0;->a:Ljava/io/File;

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Les/vo0;->j:J

    .line 3
    invoke-virtual {p0}, Les/vo0;->close()V

    .line 4
    new-instance v0, Les/bp0;

    invoke-direct {v0, p1}, Les/bp0;-><init>(Ljava/io/File;)V

    iput-object v0, p0, Les/vo0;->b:Les/zo0;

    .line 5
    iget-boolean p1, p0, Les/vo0;->m:Z

    if-eqz p1, :cond_0

    .line 6
    invoke-direct {p0}, Les/vo0;->C()V

    .line 7
    :cond_0
    :try_start_0
    invoke-direct {p0}, Les/vo0;->D()V
    :try_end_0
    .catch Lde/innosystec/unrar/exception/RarException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 8
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 9
    sget-object v0, Les/vo0;->q:Ljava/util/logging/Logger;

    sget-object v1, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;

    const-string v2, "exception in archive constructor maybe file is encrypted or currupt"

    invoke-virtual {v0, v1, v2, p1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 10
    :goto_0
    iget-object p1, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_1
    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lde/innosystec/unrar/rarfile/b;

    .line 11
    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v1

    sget-object v2, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->FileHeader:Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    if-ne v1, v2, :cond_1

    .line 12
    iget-wide v1, p0, Les/vo0;->j:J

    check-cast v0, Lde/innosystec/unrar/rarfile/g;

    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/g;->o()J

    move-result-wide v3

    add-long/2addr v1, v3

    iput-wide v1, p0, Les/vo0;->j:J

    goto :goto_1

    .line 13
    :cond_2
    iget-object p1, p0, Les/vo0;->c:Les/wo0;

    if-eqz p1, :cond_3

    .line 14
    iget-wide v0, p0, Les/vo0;->k:J

    iget-wide v2, p0, Les/vo0;->j:J

    invoke-interface {p1, v0, v1, v2, v3}, Les/wo0;->a(JJ)V

    :cond_3
    return-void

    :catch_1
    move-exception p1

    .line 15
    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 29
    iput-object p1, p0, Les/vo0;->l:Ljava/lang/String;

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 20
    iget-object v0, p0, Les/vo0;->l:Ljava/lang/String;

    return-object v0
.end method

.method public close()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/vo0;->b:Les/zo0;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Les/zo0;->close()V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/vo0;->b:Les/zo0;

    :cond_0
    return-void
.end method

.method public d()Les/k80;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->o:Les/k80;

    return-object v0
.end method

.method public g()Ljava/io/File;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->a:Ljava/io/File;

    return-object v0
.end method

.method public n()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/vo0;->m:Z

    return v0
.end method

.method public o()Lde/innosystec/unrar/rarfile/k;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->g:Lde/innosystec/unrar/rarfile/k;

    return-object v0
.end method

.method public q()Les/zo0;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->b:Les/zo0;

    return-object v0
.end method

.method public r()Les/wo0;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->c:Les/wo0;

    return-object v0
.end method

.method public s()Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/vo0;->f:Lde/innosystec/unrar/rarfile/l;

    invoke-virtual {v0}, Lde/innosystec/unrar/rarfile/l;->j()Z

    move-result v0

    return v0
.end method

.method public t()Lde/innosystec/unrar/rarfile/g;
    .locals 4

    .line 1
    iget-object v0, p0, Les/vo0;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    .line 2
    :cond_0
    iget v1, p0, Les/vo0;->i:I

    if-ge v1, v0, :cond_1

    .line 3
    iget-object v2, p0, Les/vo0;->e:Ljava/util/List;

    add-int/lit8 v3, v1, 0x1

    iput v3, p0, Les/vo0;->i:I

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lde/innosystec/unrar/rarfile/b;

    .line 4
    invoke-virtual {v1}, Lde/innosystec/unrar/rarfile/b;->d()Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    move-result-object v2

    sget-object v3, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->FileHeader:Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    if-ne v2, v3, :cond_0

    .line 5
    check-cast v1, Lde/innosystec/unrar/rarfile/g;

    return-object v1

    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method
